package com.sxf.formbean;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * Formbean
 * 
 * @author SXF
 * 
 */
public class UserForm {

	@NotNull(message = "用户名不能为空！")
	@Pattern(regexp = "[a-z0-9]{3,50}", message = "用户名不符合规范")
	private String loginName;

	@NotNull(message = "密码不能为空")
	@Size(min = 3, max = 20, message = "密码长度不符合")
	private String password;

	public UserForm() {

	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

}
